package com.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.entity.RoleModules;
import com.crm.mapper.RolesModulesMapper;
import com.crm.service.RolesModulesService;

@Service
public class RolesModulesServiceImpl implements RolesModulesService {

	@Autowired
	private RolesModulesMapper rolesModulesMapper;
	
	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return rolesModulesMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insertSelective(RoleModules record) {
		// TODO Auto-generated method stub
		return rolesModulesMapper.insertSelective(record);
	}

	@Override
	public RoleModules selectByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return rolesModulesMapper.selectByPrimaryKey(id);
	}
	
	@Override
	public List<RoleModules> selectByIdAll(String id) {
		// TODO Auto-generated method stub
		return rolesModulesMapper.selectByIdAll(id);
	}

	@Override
	public List<RoleModules> selectAll() {
		// TODO Auto-generated method stub
		return rolesModulesMapper.selectAll();
	}

	@Override
	public int updateByPrimaryKeySelective(RoleModules record) {
		// TODO Auto-generated method stub
		return rolesModulesMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int deleteByUidAndModuleid(String roleid, String moduleid) {
		// TODO Auto-generated method stub
		return rolesModulesMapper.deleteByUidAndModuleid(roleid, moduleid);
	}

	@Override
	public int insertByUidAndModuleid(String id, String roleid, String moduleid) {
		// TODO Auto-generated method stub
		return rolesModulesMapper.insertByUidAndModuleid(id, roleid, moduleid);
	}

	
}
